package com.example.module_maintenance.repo

import com.bw.lib_common.model.BaseRepository
import com.bw.lib_http.OkHttpClientManager
import com.example.module_maintenance.api.MaintenanceApiService
import com.example.module_maintenance.entity.VisitorEntity

class VisitorsRepo:BaseRepository<MaintenanceApiService>() {
    override fun createApiServer(): MaintenanceApiService = OkHttpClientManager.retrofitInstance.create(MaintenanceApiService::class.java)

    suspend fun getVisitors() = apiService.getVisitors()

    suspend fun addVisitors(body : VisitorEntity)=apiService.addVisitors( body )






}